/**
 * 
 */
package com.p2p.front.web.form;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.p2p.base.model.BasePage;
import com.p2p.base.model.DefaultPagination;
import com.p2p.base.util.DateUtil;

/**
 * @author ruiqi
 *
 */
public class AccountFreezeQueryForm extends BasePage{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2767413695756659893L;
	
	private String start;
	
	private String end;
	
	private String queryString;


	public String getStart() {
		return start;
	}

	public void setStart(String startTime) {
		this.start = startTime;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String endTime) {
		this.end = endTime;
	}

	public String getQueryString() {
		return queryString;
	}

	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}
	
	public void initQueryString(){
		StringBuilder sb = new StringBuilder();
	
		if(start!=null){
			sb.append("startDate="+DateUtil.getYYYYMMDDStr(start));
		}
		if(end!=null){
			sb.append("endDate="+DateUtil.getYYYYMMDDStr(end));
		}
		this.queryString = sb.toString();
	}

}
